import os

files = set([])
for line in open("o.o","r"):
    files.add(line.strip().split(" ")[-1].split(".")[0])

for line in os.popen("ls static/").read().split("\n"):
    cmd = "rmdir ./static/%s"%line
    print(cmd)
    os.system(cmd)
    #if line.isdigit() and line not in files:
    #    os.system("rmdir %s"%line)
